package com.buba.springcloud.util;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class ExceptionUtils {
    public static String handleBlock(Integer id, BlockException ex) {
        return "熔断降级";
    }

    public static String handleFallback(Integer id, Throwable tx) {
        return "异常降级";
    }
}